import { defineStore } from 'pinia'

export const useUserStore = defineStore('user', {
  state: () => ({
    currentPath: '' // 当前路由
  }),
  getters: {
    getCurrentPath(): string {
      return this.currentPath
    }
  },
  actions: {
    setCurrentPath(currentPath: string) {
      this.currentPath = currentPath
    }
  },
  persist: true
})
